#home目录 ~ 下执行

red=31
green=32
yellow=33
blue=34

src=/Users/df/Documents/HBuilderProjects/pomelo_socket.io/

echoColor() {
    local color=$1
    shift
    echo -e "\033[${color}m$@\033[m"
}

init(){
echoColor $red "开始"
killall node
cd $src/game-server
pomelo start -D
cd $src/web-server
pomelo start -D
cd $src
echoColor $red "结束"
}

init